﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SerializationGenerate
{
    /// <summary>
    /// 配置文件结构体
    /// </summary>
    public class ConfigInfo
    {
        /// <summary>
        /// 是否启用
        /// </summary>
        public int IsActive { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 唯一标记
        /// </summary>
        public string flag { get; set; }

        /// <summary>
        /// mover.本站域名
        /// </summary>
        public string Domain { get; set; }

        /// <summary>
        /// mover.目标站域名
        /// </summary>
        public string TargetDomain { get; set; }

        /// <summary>
        /// mover.本站名称
        /// </summary>
        public string WebName { get; set; }

        /// <summary>
        /// mover.字符编码
        /// </summary>
        public string Charset { get; set; }

        /// <summary>
        /// mover.
        /// </summary>
        public string IndexUrl { get; set; }

        /// <summary>
        /// 文件保存路径
        /// </summary>
        public string FilePath { get; set; }

        /// <summary>
        /// 本站链接字符串
        /// </summary>
        public string ConnString { get; set; }

        /// <summary>
        /// mover.目标站链接字符串
        /// </summary>
        public string TargetConnString { get; set; }

        /// <summary>
        /// 每次循环睡眠时间
        /// </summary>

        public int SleepTimes { get; set; }

        /// <summary>
        /// 每本书休眠时间
        /// </summary>
        public int SleepBook { get; set; }

        /// <summary>
        /// 每章节休眠时间
        /// </summary>
        public int SleepChapter { get; set; }

        /// <summary>
        /// 最大重复次数
        /// </summary>
        public int RepeatMax { get; set; }

        /// <summary>
        /// 上次循环更新到的时间
        /// </summary>
        public string LastUpdate { get; set; }

        /// <summary>
        /// mover预留字段
        /// </summary>
        public string DocLastUpdate { get; set; }

        /// <summary>
        /// mover预留字段
        /// </summary>
        public int ImageMaxWidth { get; set; }

        /// <summary>
        /// mover预留字段
        /// </summary>
        public string SourceFlag { get; set; }

        /// <summary>
        /// mover预留字段
        /// </summary>
        public string SourceFilePath { get; set; }

        /// <summary>
        /// 规则文件标记
        /// </summary>
        public string RuleFlag { get; set; }

        /// <summary>
        /// ranwen=1;17k=2
        /// </summary>
        public string SecondRules { get; set; }

        /// <summary>
        /// 目标站的页数
        /// </summary>
        public int MaxPage { get; set; }
    }
}
